$OpenBSD: README-server,v 1.5 2014/09/14 05:58:07 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

A manual is available at:
	http://la-samhna.de/samhain/manual/

MariaDB (InnoDB)
================

Connect to MariaDB, and create a user and database for Samhain;

    $ mysql -u root -p
    MariaDB [(none)]> create user samhain@localhost identified by 'password';
    MariaDB [(none)]> create database samhain;
    MariaDB [(none)]> grant all privileges on samhain.* to samhain@localhost;
    MariaDB [(none)]> flush privileges;
    MariaDB [(none)]> quit

Then initialize the database from the files installed in
${TRUEPREFIX}/share/examples/yule:

    $ cd ${TRUEPREFIX}/share/examples/yule
    $ mysql -usamhain -p samhain < mysql.sql

PostgreSQL
==========

Assuming you have an administrative account named `postgres',
you can create the 'samhain' user and database like this:

    $ createuser -U postgres --pwprompt --no-superuser \
      --createdb --no-createrole samhain
    $ createdb -U samhain samhain

And initialize the database:

    $ cd ${TRUEPREFIX}/share/examples/yule
    $ psql -U samhain samhain < samhain.postgresql.init
